cmake_minimum_required(VERSION 3.16)
project(polish-exp)
add_executable(${PROJECT_NAME} main.c digit_property.c string_stack.c)
add_custom_target(test
    COMMAND DEBUG=1 ${CMAKE_BINARY_DIR}/${PROJECT_NAME} "A+B-C*D/E+F"
    DEPENDS ${PROJECT_NAME}
)
add_test(
    NAME run_polish
    COMMAND $<TARGET_FILE:${PROJECT_NAME}> "A+B-C*D/E+F"
)
add_test(
    NAME manual
    COMMAND $<TARGET_FILE:${PROJECT_NAME}> "help"
)
